#ifndef _DT_CTL_PLUS_H
#define _DT_CTL_PLUS_H

#include <stdint.h>

struct s_ctl_plus{
    uint8_t plus_flag;
    uint8_t b_sta1;
    uint8_t b_sta2;
    uint8_t b_sta3;
    int16_t execute_pe;
    int16_t off0;
    int16_t off1;
    int16_t off2;
    int16_t limit0;
    int16_t limit1;
    int16_t limit2;
    int16_t limit3;

    int16_t ctl_val0;
    int16_t ctl_val1;
    int16_t ctl_val2;
    int16_t ctl_val3;
    int16_t ctl_val4;
    int16_t ctl_val5;
    int16_t ctl_val6;
    int16_t ctl_val7;
};

extern struct s_ctl_plus pctl;

void dt_plus_handle(int16_t sa);
void dt_plus_default(void);
void dt_plus_recfg(void);
void dt_plus_cfg_restore(void);


#endif

